<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./lib/animate.css">
    <script src="./lib/vue.js"></script>
</head>
<body>
    <div id="app">
        <input type="button" value="toggle" @click="flag=!flag">
        <!-- enter-active-class : 进场动画类名
        leave-active-class : 离场动画类名
        :duration : 绑定进场和离场动画时间,单位毫秒 -->
        <transition 
        enter-active-class="bounceIn"
        leave-active-class="bounceOut" 
        :duration="{ enter: 200, leave: 400 }">
            <h3 v-if="flag" class="animated">使用第三方库编辑动画</h3>
        </transition>

    </div>
    <script> 
        new Vue({
            el : '#app',
            data : {
                flag : false
            },
            methods : {

            }
        })
    
    </script>
</body>
</html>